package impl.transverse;

import java.util.ArrayList;

import fr.irit.smac.may.lib.components.messaging.receiver.AgentRef;

import sudoemerg.Data;
import interfaces.agentt.IInfoAgent;

public class DataImpl extends Data {
	public class AgentSide extends Agent {
		@Override
		protected IInfoAgent info() {
			return new IInfoAgent() {
				public int getNum() {
					return infoInfr().getNum(myRef().pull());
				}
				
				public ArrayList<AgentRef> getListeVoisins() {
					return infoInfr().getListeVoisins(myRef().pull());
				}

				public void setNum(int num) {
					infoInfr().setNum(myRef().pull(), num);
				}
			};
		}
		
	}
}
